<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<title>Resultats de la recherche</title>
	<link rel="stylesheet" type="text/css" href="style.css" />
</h:head>

<h:body>

	<div id="header">
		<ui:include src="header.xhtml" />
	</div>

	<div id="milieu">
		<div class="bobine minH"></div>
		<div id="contenu" class="minH">
		
			<h:outputLabel rendered="#{beanFilm.filmNom.size() > 0}" >
				<h3>Liste des films :</h3>
			</h:outputLabel>		
			<div class="TabRecherche">
			<h:dataTable border="1" value="#{beanFilm.filmNom}" var="filmCourant" 
			rendered="#{beanFilm.filmNom.size() > 0}">
				<h:column>
					<f:facet name="header">Titre</f:facet>
					<h:outputLink value="ficheFilm.xhtml">
						<h:outputText value="#{filmCourant.titre}" />
						<f:param name="filmId" value="#{beanFilm.idFilm}"/>
					</h:outputLink>
				</h:column>
				<h:column>
					<f:facet name="header">Annee</f:facet>
					<h:outputText value="#{filmCourant.annee}"/>
				</h:column>
			</h:dataTable>
			</div>
			<h:outputLabel rendered="#{beanFilm.filmNom.size() == 0}" >
				<h3>Aucun film ne correspond à votre recherche</h3>
			</h:outputLabel>
		</div>	
		<div class="bobine minH" />
	</div>
	<div id="footer">Projet réalisé par Aurore Lambin et Pauline
		Fischer</div>
</h:body>

</html>